local skel = fk.CreateSkill {
  name = "emo__wushuang",
}

Fk:loadTranslationTable{
  ["emo__wushuang"] = "无双",
  [":emo__wushuang"] = "当你的【杀】被抵消时或打出【杀】时，你可以将一张牌当【杀】使用，并令此牌不可响应或伤害+1。",

  ["#emo__wushuang-slash"] = "无双：你可以将一张牌当【杀】使用，并令此牌不可响应或伤害+1",
  ["emo__wushuang_disresponsive"] = "不可响应",
  ["emo__wushuang_damage"] = "伤害+1",

  ["$emo__wushuang1"] = "此天下还有挡我者！？",
  ["$emo__wushuang2"] = "画戟扫杀场，无双立万世。",
}

local spec = {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(skel.name) and not player:isNude() and
      data.card.trueName == "slash"
  end,
  on_cost = function (self, event, target, player, data)
    local room = player.room
    local use = room:askToUseVirtualCard(player, {
      name = "slash", skill_name = skel.name, skip = true, prompt = "#emo__wushuang-slash",
      card_filter = { n = {1,1}, pattern = "." }, extra_data = {bypass_times = true}
    })
    if use then
      local choice = room:askToChoice(player, {skill_name = skel.name, choices = {"emo__wushuang_disresponsive", "emo__wushuang_damage"} })
      if choice:endsWith("damage") then
        use.additionalDamage = 1
      else
        use.disresponsiveList = table.simpleClone(room.players)
      end
      event:setCostData(self, { use = use })
      return true
    end
  end,
  on_use = function(self, event, target, player, data)
    player.room:useCard(event:getCostData(self).use)
  end,
}

skel:addEffect(fk.CardEffectCancelledOut, spec)

skel:addEffect(fk.CardResponding, spec)

return skel
